﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FtpCrawler
{
    public class SimpleConsoleProcessor : IFileProcessor
    {
        private StringBuilder _sb = new StringBuilder();
        private int _fileCount = 0;
        private int _errorCount = 0;

        public int FileCount
        {
            get { return _fileCount; }
            set { _fileCount = value; }
        }

        public int ErrorCount
        {
            get { return _errorCount; }
            set { _errorCount = value; }
        }

        public int GetFilesCount()
        {
            throw new NotImplementedException();
        }

        public void ProcessFile(FtpFileInfo fileInfo)
        {
            this.FileCount++;
            Console.WriteLine(fileInfo.ToString());
        }

        public void ProcessError(string msg)
        {
            this.ErrorCount++;
            Console.WriteLine(msg);
        }

        public void StartProcess()
        {
            throw new NotImplementedException();
        }

        public void ProcessCompleted()
        {
            throw new NotImplementedException();
        }
    }
}